<h1><?php echo translate('Players'); ?></h1>
<?php foreach ($tpl_vars['player_tbl'] as $group_id => $player_group) { ?>
<div class="players-page">
	<div class="playres-list-group">
		<?php
			switch($group_id) {
				case CS_GOALKEEPER_TYPE:
					echo translate('Goalkeepers');
					break;
				case CS_DEFENDER_TYPE:
					echo translate('Defenders');
					break;
				case CS_MIDFIELDER_TYPE:
					echo translate('Midfielders');
					break;
				case CS_FORWARD_TYPE:
					echo translate('Forwards');
					break;
			}
		?>
	</div>
	<ul class="players-list">
		<?php foreach ($player_group as $id_pl => $player) { ?>
			<li><a href="<?php echo $player['player_url']; ?>"><?php echo $player['name_pl'] . ' ' . $player['surname_pl']; ?></a></li>
		<?php } ?>
	</ul>
</div>
<?php } ?>